package com.financing.wap.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.wap.dao.IPublicActivitiesDao;
import com.financing.wap.dto.PublicActivitiesDTO;
import com.financing.wap.dto.PublicActivitiesPersonDTO;
import com.financing.wap.service.IPublicActivitiesService;
import com.financing.wap.vo.PublicActivitiesVo;

/**
 * 
 * @ClassName: PublicActivitiesServiceImpl
 * @Description: 公共活动服务器层实现 
 * @author  qiye
 * @date 2014年11月6日 下午4:17:22
 *
 */
@Service("publicActivitiesServiceImpl")
@Transactional(rollbackFor=Exception.class)
public class PublicActivitiesServiceImpl  implements IPublicActivitiesService {

	@Autowired
	private IPublicActivitiesDao publicActivitiesDaoImpl;
	
	public int addPublicActivities(PublicActivitiesDTO publicActivitiesDTO)
			throws SQLException {
		return publicActivitiesDaoImpl.addPublicActivites(publicActivitiesDTO);
	}

	@Override
	public PublicActivitiesVo queryPublicActivities(
			PublicActivitiesDTO publicActivitiesDTO) throws SQLException {
		return publicActivitiesDaoImpl.queryPublicActivities(publicActivitiesDTO);
	}

	@Override
	public List<PublicActivitiesVo> getPublicActivitiesList(
			Map<String, Object> parameter) throws SQLException{
		return publicActivitiesDaoImpl.getPublicActivitiesList(parameter);
	}

	@Override
	public int getPublicActivitiesCount(Map<String, Object> parameter) throws SQLException{
		return publicActivitiesDaoImpl.getPublicActivitiesCount(parameter);
	}

	@Override
	public int addPublicActivitiesPerson(PublicActivitiesPersonDTO bean)
			throws SQLException {
		return publicActivitiesDaoImpl.addPublicActivitiesPerson(bean);
	}


}
